package selfview.sufutian.com.myapplication;

import android.app.Application;

import com.tendcloud.tenddata.TCAgent;

/**
 * Created by sufutian on 2017/2/27.
 */

public class BaseApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        initTalkingData();

    }

    /**
     * talkingdata数据统计
     */
    private void initTalkingData() {
        TCAgent.LOG_ON = true;
        TCAgent.init(this, "327F44DAC04E4C8CB8AB32AAF0F921C8", "渠道 ID");
        TCAgent.setReportUncaughtExceptions(true);

        //自动获取异常信息，调用以下方法：
        // true: 开启自动捕获
        // false: 关闭自动捕获
        TCAgent.setReportUncaughtExceptions(true);
    }
}
